<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class FirmBrandMessage extends Model
{
    use HasDateTimeFormatter;
    protected $fillable = [
        'type',
        'user_id',
        'brand_id',
        'name',
        'content',
        'sex',
        'phone',
        'status'
    ];

    protected $attributes = [
        'sex' => 0,
        'status'  =>1
    ];

    public function brand()
    {
        return $this->belongsTo(FirmBrand::class,'brand_id');
    }

}
